﻿using Rbac.Services.Roles.Dto;
using System.Collections.Generic;

namespace Rbac.Services.Roles
{
    public interface IRoleMenuService
    {
        /// <summary>
        /// 全部角色信息
        /// </summary>
        /// <returns></returns>
        List<RoleDto> Query();
        /// <summary>
        /// 根据角色ID查对应的菜单
        /// </summary>
        /// <param name="RoleId"></param>
        /// <returns></returns>
        List<int> QueryByRole(int RoleId);
        /// <summary>
        /// 分配权限
        /// </summary>
        /// <param name="permission"></param>
        /// <returns></returns>
        ResultDto AssignPermission(PermissionDto permission);
        /// <summary>
        /// 查询所有权限
        /// </summary>
        /// <returns></returns>
        List<RoleMenuPermissionDto> QueryPermission();
    }
}